[Android] XML Parser

Posted by lemon on Stack Overflow See other posts from Stack Overflow or by lemon
Published on 2010-05-20T04:05:05Z Indexed on 2010/05/20 4:10 UTC
Read the original article Hit count: 224

Filed under:
|
|

I'm trying to extract n0Y7ezLlIYA8R0K54rEmHaTOraBQVSPDjQaGlQxlGso4jdVN1kRxtcfskEs= using w3c dom

<html>
<div id='token' style='display:none;'>
n0Y7ezLlIYA8R0K54rEmHaTOraBQVSPDjQaGlQxlGso4jdVN1kRxtcfskEs=
</div>
</html>

but I seem to be stuck

DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(con.getInputStream());
NodeList list = doc.getElementsByTagName("div");

Can someone please point me to some basic tutorials that would help me solve my dilemma. Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about java